package com.healthy.support.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.support.mapper.AgentsMapper;
import com.healthy.support.domain.Agents;
import com.healthy.support.service.IAgentsService;

/**
 * 客服人员Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class AgentsServiceImpl implements IAgentsService 
{
    @Autowired
    private AgentsMapper agentsMapper;

    /**
     * 查询客服人员
     * 
     * @param agentId 客服人员主键
     * @return 客服人员
     */
    @Override
    public Agents selectAgentsByAgentId(Long agentId)
    {
        return agentsMapper.selectAgentsByAgentId(agentId);
    }

    /**
     * 查询客服人员列表
     * 
     * @param agents 客服人员
     * @return 客服人员
     */
    @Override
    public List<Agents> selectAgentsList(Agents agents)
    {
        return agentsMapper.selectAgentsList(agents);
    }

    /**
     * 新增客服人员
     * 
     * @param agents 客服人员
     * @return 结果
     */
    @Override
    public int insertAgents(Agents agents)
    {
        return agentsMapper.insertAgents(agents);
    }

    /**
     * 修改客服人员
     * 
     * @param agents 客服人员
     * @return 结果
     */
    @Override
    public int updateAgents(Agents agents)
    {
        return agentsMapper.updateAgents(agents);
    }

    /**
     * 批量删除客服人员
     * 
     * @param agentIds 需要删除的客服人员主键
     * @return 结果
     */
    @Override
    public int deleteAgentsByAgentIds(Long[] agentIds)
    {
        return agentsMapper.deleteAgentsByAgentIds(agentIds);
    }

    /**
     * 删除客服人员信息
     * 
     * @param agentId 客服人员主键
     * @return 结果
     */
    @Override
    public int deleteAgentsByAgentId(Long agentId)
    {
        return agentsMapper.deleteAgentsByAgentId(agentId);
    }
}
